package wechat.service;

import java.util.List;

import wechat.bean.WechatInformationBean;
import wechat.entity.EventEntity;
import wechat.entity.MessageEntity;
import wechat.resources.InstanceResource;

public interface WechatInfoService {

	/**
	 * 处理回调消息
	 * 
	 * @param instanceResource
	 * @param wechatInformationBean
	 * @return
	 */
	public String doWechatInfo(InstanceResource instanceResource, WechatInformationBean wechatInformationBean);
	/**
	 * 返回最近20条信息
	 * @return
	 */
	public List<MessageEntity> findMessage();
	/**
	 * 返回最近20条事件
	 * @return
	 */
	public List<EventEntity> findEvent();
}
